import Vue from 'vue'
import VueRouter from 'vue-router';

import Home from '../pages/Home.vue'
// import Search from '../pages/Search.vue'

// 使用Router
Vue.use(VueRouter);

const routes=[
    { path: '/', redirect: '/home' },
    {
        path:'/home',
        component:Home,
        meta:{
            title:'bilibili',
        }
    },
    {
        path:'/'
    }
]

const router = new VueRouter({
    routes
})

export default router;
